using System;

namespace PolePositionMobile.Entities
{
    /// <summary>
    /// An entity representing a visits data
    /// </summary>
    [Serializable]
	public class EData
	{
        //Created by: VMCoder
        //Creation date: -
        //Last updated by: VMCoder
        //Last update: 2008.04.10

        #region Private Members
		Int32 m_DataId;
        Int32 m_VisitFk = Int32.MinValue;
        EPole[] m_Poles;
        #endregion Private Members

		#region Properties
        public Int32 DataId
        {
            get { return m_DataId; }
            set { m_DataId = value; }
        }
        public Int32 VisitFk
        {
            get { return m_VisitFk; }
            set { m_VisitFk = value; }
        }
        public EPole[] Poles
        {
            get { return m_Poles; }
            set { m_Poles = value; }
        }
        #endregion Properties

		#region Constructors
		public EData()
		{
			m_DataId = Int32.MinValue;
		}
        public EData(Int32 dataId)
			: this()
		{
            m_DataId = dataId;
		}
        public EData(Int32 dataId, Int32 visitFk)
            : this(dataId)
		{
            m_VisitFk = visitFk;
        }
		#endregion Constructors
	}
}
